#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>
#include <string.h>
int main()
{
	struct what 
	{
		int age;
		char name[10];
	};
	char buf[50] = { 0 };
	struct what s = { 10,"nick" };
	sprintf(buf, "%d %s", s.age, s.name);
	struct what s1 = { 0 };
	printf("%s\n", buf);
	sscanf(buf, "%d %s", &(s1.age), &(s1.name));
	printf("%d %s", s1.age, s1.name);
	return 0;
}